<!DOCTYPE html>
<html>
    <head>
	<link rel="icon" type="image/png" href="../images/icone.png">
	<link rel="stylesheet" type="text/css" href="css/index.css"/>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Controle de Protocolo</title>
	<script language="javascript" type="text/javascript">
		function valida(dados)
		{
			if (dados.userLogin.value=="") {
				alert("Preencha o login corretamente.");
				dados.userLogin.focus();
				return false;
			}

			if (form.userPassword.value=="" || !Ramal(form.userPassword.value) || form.userPassword.value.length < 4) {
				alert("Preencha a senha corretamente.");
				form.userPassword.focus();
				return false;
			}

		}
	</script>

             <!--[if IE]>
                    <link rel="stylesheet" type="text/css" href="css/hacks_ie.css"/>
                    <script src="js/DD_belatedPNG.js" type="text/javascript"></script>
                    <script>
                      /* Tratando as imagens pngs no ie. tirando fundo cinza e fundo preto */
                      DD_belatedPNG.fix('.png_bg');
                    </script>
                <style>
                    #nome_login { width: 45% !important; }
                </style>
                <![endif]-->
                
                <!--[if IE 6]>
                    <link rel="stylesheet" type="text/css" href="css/hacks_ie6.css"/>
                <![endif]-->

    </head>
    <body onload="document.getElementById('userLogin').focus()" >
		<div id="formulario">
			<form id="form" name="dados" method="post" action="validalogin.php" onSubmit="return valida(this)"><!-- enctype="multipart/form-data">-->
				<div id="logo"><img src="imagens/logo.jpg" border="0" alt="" /><br/><span style="font-size: 11px; color: blue; font-weight: bold;">Centro de Testagem e Aconselhamento</span></div>
				<p>
					<label>Usu&aacute;rio<br />
					<input type="text" id="userLogin" name="userLogin" size="20" class="input" tabindex="1" value="" /></label>
				</p>
				<p>
					<label>Senha<br />
					<input type="password" id="userPassword" name="userPassword" size="20" class="input" tabindex="2" value="" /></label>
				</p>
					<br/>
				<p class="submit">
					<input type="submit" name="submit" id="submit" class="button-primary" value="Entrar" tabindex="100" />
				</p>
			</form>
		</div>
<p style="text-align: center; font-size: 12px;">2013 - Desenvolvido pela Diretoria de Tecnologia de Informa&ccedil;&atilde;o - DTI </p>
	
</body>
</html>
